﻿using System;

namespace Model
{
    public class YX_TransferCheque : IYX_Bill_Base
    {
        /// <summary>
        /// 转账支票ID
        /// </summary>
        public decimal N_TFCHEQUE_ID { get; set; }

        /// <summary>
        /// 转账支票出票公司ID
        /// </summary>
        public decimal N_TFCHEQUE_DRAWERCMPID { get; set; }

        /// <summary>
        /// 转账支票付款银行ID
        /// </summary>
        public decimal N_TFCHEQUE_DRAWERBANKID { get; set; }

        /// <summary>
        /// 转账支票付款账号
        /// </summary>
        public string C_TFCHEQUE_DRAWERACCOUNT { get; set; }

        /// <summary>
        /// 转账支票收款公司
        /// </summary>
        public string C_TFCHEQUE_PAYEECMP { get; set; }

        /// <summary>
        /// 转账支票收款银行
        /// </summary>
        public string C_TFCHEQUE_PAYEEBANK { get; set; }

        /// <summary>
        /// 转账支票收款账号
        /// </summary>
        public string C_TFCHEQUE_PAYEEACCOUNT { get; set; }

        /// <summary>
        /// 转账支票收款人
        /// </summary>
        public string C_TFCHEQUE_PAYEENAME { get; set; }

        /// <summary>
        /// 转账支票金额
        /// </summary>
        public decimal N_TFCHEQUE_INVOICEVALUE { get; set; }

        /// <summary>
        /// 转账支票出票日期
        /// </summary>
        public DateTime D_TFCHEQUE_STARTDATE { get; set; }

        /// <summary>
        /// 转账支票交易编号
        /// </summary>
        public string C_TFCHEQUE_CODE { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string C_TFCHEQUE_REMARK { get; set; }

        #region YX_Bill_Base 成员

        public int ID
        {
            get
            {
                return (int)N_TFCHEQUE_ID;
            }
            set
            {
                N_TFCHEQUE_ID = value;
            }
        }

        public int DE_COMPANY_ID
        {
            get
            {
                return (int)N_TFCHEQUE_DRAWERCMPID;
            }
            set
            {
                N_TFCHEQUE_DRAWERCMPID = value;
            }
        }

        public int DE_BANK_ID
        {
            get
            {
                return (int)N_TFCHEQUE_DRAWERBANKID;
            }
            set
            {
                N_TFCHEQUE_DRAWERBANKID = value;
            }
        }

        public string ACCOUNT
        {
            get
            {
                return C_TFCHEQUE_DRAWERACCOUNT;
            }
            set
            {
                C_TFCHEQUE_DRAWERACCOUNT = value;
            }
        }

        public string PAYEENAME
        {
            get
            {
                return C_TFCHEQUE_PAYEENAME;
            }
            set
            {
                C_TFCHEQUE_PAYEENAME = value;
            }
        }

        public DateTime? START_DATE
        {
            get
            {
                return D_TFCHEQUE_STARTDATE;
            }
            set
            {
                if (value != null)
                {
                    D_TFCHEQUE_STARTDATE = value.Value;
                }
            }
        }

        public decimal PAY_AMOUNT
        {
            get
            {
                return (int)N_TFCHEQUE_INVOICEVALUE;
            }
            set
            {
                N_TFCHEQUE_INVOICEVALUE = value;
            }
        }

        public string DE_CODE
        {
            get
            {
                return C_TFCHEQUE_CODE;
            }
            set
            {
                C_TFCHEQUE_CODE = value;
            }
        }

        public string REMARK
        {
            get
            {
                return C_TFCHEQUE_REMARK;
            }
            set
            {
                C_TFCHEQUE_REMARK = value;
            }
        }

        #endregion YX_Bill_Base 成员
    }

    public class YX_Bill_BaseTC
    {
        /// <summary>
        /// 汇票ID
        /// </summary>
        public int N_ID { get; set; }

        /// <summary>
        /// 汇票出票人公司ID
        /// </summary>
        public int N_COMPANY_ID { get; set; }

        /// <summary>
        /// 汇票出票人银行ID
        /// </summary>
        public int N_BANK_ID { get; set; }

        /// <summary>
        /// 汇票出票人账户
        /// </summary>
        public string C_ACCOUNT { get; set; }

        /// <summary>
        /// 汇票收款人
        /// </summary>
        public string C_PAYEENAME { get; set; }

        /// <summary>
        /// 汇票出票日期
        /// </summary>
        public DateTime? D_START_DATE { get; set; }

        /// <summary>
        /// 汇票出票金额
        /// </summary>
        public decimal N_PAY_AMOUNT { get; set; }

        /// <summary>
        /// 汇票交易合同号
        /// </summary>
        public string C_CODE { get; set; }

        /// <summary>
        /// 汇票备注
        /// </summary>
        public string C_REMARK { get; set; }
    }

    public class TC : YX_Bill_Base
    {
        /// <summary>
        /// 转账支票收款公司
        /// </summary>
        public string C_TFCHEQUE_PAYEECMP { get; set; }

        /// <summary>
        /// 转账支票收款银行
        /// </summary>
        public string C_TFCHEQUE_PAYEEBANK { get; set; }

        /// <summary>
        /// 转账支票收款账号
        /// </summary>
        public string C_TFCHEQUE_PAYEEACCOUNT { get; set; }
    }
}